package com.github.jettyrun.springinterface.demo.initializingbean;

import org.springframework.beans.factory.DisposableBean;
import org.springframework.beans.factory.InitializingBean;

/**
 * Created by jetty on 18/1/31.
 */
public class InitBean implements InitializingBean,DisposableBean {
    public void destroy() throws Exception {
        System.out.println("destroy");

    }

    public void afterPropertiesSet() throws Exception {
        System.out.println("init-afterPropertiesSet()");
    }

    public void test(){
        System.out.println("init-test()");
    }

    public void destroymethod(){

        System.out.println("destroy-method");
    }
}
